<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加分类</title>

    <!-- Bootstrap core CSS -->
    <link href="/shopping/thinkshop/Public/Admin/css/bootstrap.css" rel="stylesheet">
    <link href="/shopping/thinkshop/Public/Admin/js/bootstrap.js" rel="stylesheet">
    <link href="/shopping/thinkshop/Public/Admin/js/jquery-1.10.2.js" rel="stylesheet">
    <!-- Add custom CSS here -->
    <link href="/shopping/thinkshop/Public/Admin/css/sb-admin.css" rel="stylesheet">
    <link rel="stylesheet" href="/shopping/thinkshop/Public/Admin/font-awesome/css/font-awesome.min.css">


    <script src="/shopping/thinkshop/Public/Admin/js/jquery-1.10.2.js"></script>
<script src="/shopping/thinkshop/Public/Admin/js/bootstrap.js"></script>
<script src="/shopping/thinkshop/Public/Admin/js/app.js"></script>
</head>

<body>

<div id="wrapper">

    <!-- Sidebar -->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="<?php echo U('index/index');?>">管理后台</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">

            

           
                   


<ul class="nav navbar-nav side-nav">

 <?php $menu=session('menu');?>
                

<?php if(is_array($menu)): foreach($menu as $key=>$v): ?><li class="dropdown">
        <a href="/shopping/thinkshop/admin.php/<?php echo ($v['m']); ?>/<?php echo ($v['c']); ?>/<?php echo ($v['f']); ?>"><i class="fa fa-reorder"></i> <?php echo ($v['name']); ?></a>
    </li><?php endforeach; endif; ?>
    <li class="dropdown">
        <a href="<?php echo U('goods/index');?>"><i class="fa fa-reorder"></i> 商品管理</a>
    </li>
    <li class="dropdown">
        <a href="<?php echo U('goodsclass/index');?>"><i class="fa fa-reorder"></i> 商品分类管理</a>
    </li>
    <li class="dropdown">
        <a href="<?php echo U('goodsimg/index');?>"><i class="fa fa-reorder"></i> 商品图片管理</a>
    </li>
    <!-- <li><a href="#"><i class="fa fa-dashboard"></i> 仪表盘</a></li>
    <li class="dropdown">
        <a href="/shopping/thinkshop/admin.php/Admin/Privilege/index"><i class="fa fa-reorder"></i> 权限管理</a>
    </li>
    <li class="dropdown">
        <a href="/shopping/thinkshop/admin.php/Admin/Role/index"><i class="fa fa-edit"></i> 角色管理</a>
    </li>
    <li class="dropdown">
        <a href=""><i class="fa fa-file-text-o"></i> 单页管理 </a>
    </li>
    <li class="dropdown">
        <a href="#"><i class="fa fa-users"></i> 用户管理</a>
    </li>
     <li class="dropdown">
        <a href="#"><i class="fa fa-link"></i> 链接管理</a>
    </li>
    <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> 系统设置 <b class="caret"></b></a>
        <ul class="dropdown-menu">
            <li><a href="#">自定义字段</a></li>
            <li><a href="#">系统优化</a></li>
            <li><a href="#">缓存管理</a></li>
        </ul>
    </li> -->
</ul>

            <ul class="nav navbar-nav navbar-right navbar-user">

                <li class="dropdown user-dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> 你好,<?php echo session('username');?> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="#"><i class="fa fa-gear"></i> 设置</a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo U('login/logout');?>"><i class="fa fa-power-off"></i> 退出</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </nav>
<div id="page-wrapper">
    <form method="post" action="<?php echo ($action); ?>">
        <input name="id" value="<?php echo ($id); ?>" type="hidden">
        <div class="form-group">
            <label>标题</label>
            <input type="text" name="title" class="form-control" placeholder="输入标题" value="<?php echo ($save["title"]); ?>">
        </div>
        <div class="form-group">
            <label>描述</label>
            <input type="text" name="bewrite" class="form-control" placeholder="输入描述" value="<?php echo ($save["bewrite"]); ?>">
        </div>
        <div class="form-group">
            <label>关键词</label>
            <input type="text" name="keyword" class="form-control" placeholder="输入商品分类关键词" value="<?php echo ($save["keyword"]); ?>">
        </div>
        <div class="form-group">
            <label>商品上级分类ID</label>
            <input type="text" name="higher_id" class="form-control" placeholder="输入商品上级分类ID" value="<?php echo ($save["higher_id"]); ?>">
        </div>
        <div class="form-group">
            <label>商品分类名称</label>
            <input type="text" name="name" class="form-control" placeholder="输入商品分类名称" value="<?php echo ($save["name"]); ?>">
        </div>
        <div class="form-group">
            <label>分类状态(0:不显示,1:显示)</label>
            <input type="text" name="state" class="form-control" placeholder="输入分类状态" value="<?php echo ($save["state"]); ?>">
        </div>
        <div class="form-group">
            <label>是否显示在导航(0:不显示,1:显示)</label>
            <input type="text" name="navi" class="form-control" placeholder="输入是否显示在导航" value="<?php echo ($save["navi"]); ?>">
        </div>
        <div class="form-group">
            <label>排序</label>
            <input type="text" name="sort" class="form-control" placeholder="输入排序" value="<?php echo ($save["sort"]); ?>">
        </div>
        <button type="submit" class="btn btn-default">提交</button>
    </form>
</div>

<!-- JavaScript -->
<script src="/shopping/thinkshop/Public/Admin/js/jquery-1.10.2.js"></script>
<script src="/shopping/thinkshop/Public/Admin/js/bootstrap.js"></script>
<script src="/shopping/thinkshop/Public/Admin/js/app.js"></script>

</body>
</html>